package com.mini.test.netty;

import java.net.InetSocketAddress;
import java.util.concurrent.Executors;

import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;

public class ServerMain {
	
	public static void main(String arg[]){
		ServerBootstrap server = new ServerBootstrap(new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),Executors.newCachedThreadPool()));
		server.setPipelineFactory(new ServerPipeLineFactory());
		server.bind(new InetSocketAddress(8080));
	}

}
